home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / link-grammar / en / 4.0.knowledge < prev    next >
Encoding:
Text File  |  2008-12-05  |  12.5 KB  |  284 lines

  1. ; Post-processing knowledge file
  2. ; 6/96
  3.  
  4. ; ----------------------------------------------------------------------------
  5. ; This file contains the knowledge related to post-processing, in the 
  6. ; form of lists and rules. This file is read by post-process.c at run-time. 
  7. ; Syntax of file:
  8. ;           line starting with ";" is a comment
  9. ;           commas are field delimiters 
  10. ;           any token beginning with the character @ is expanded to the set
  11. ;               of symbols it defined. e.g. one could write
  12. ; FOO: blah1 blah2 blah3
  13. ; thus defining a set FOO containing three strings. Then one could later write
  14. ; BAR: blah5 @FOO blah8
  15. ; which defines a set BAR containing 5 strings. 
  16. ; Capitalized tokens are *required*, though if you feel like providing an
  17. ; empty list afterwards, that's your right.
  18. ; ----------------------------------------------------------------------------
  19.  
  20.  
  21. ; the following links start a domain. Each must be given a name in the
  22. ; table below (STARTING_LINK_TYPE_TABLE)
  23.   
  24. DOMAIN_STARTER_LINKS: 
  25.  W   Ce   Cs   Ca   Cc   Ci   R*   Rn   Re   RSe  Mr   QI#d   Mv*   Jr  Mj   Qd  
  26.  TOn   TOi   Mg*   MVi  Ss#d   Bsd   ER   Z  Ma#*   SIs#g  BIqx   MX#p   MX#a  
  27.  MX#r   MX#j   MV#o   MV#p  Eq   COq   CCq  AFd   PFc 
  28.  
  29.  
  30.  
  31. ; ----------------------------------------------------------------------
  32. ; the following links start a urfl domain.  They are also included in the 
  33. ; domain, as opposed to regular starter links (above), which are not. A
  34. ; urfl domain includes links accessible from the root word, tracing to
  35. ; the right (as well as everything accessible from the left end of the 
  36. ; starter link).
  37.  
  38. URFL_DOMAIN_STARTER_LINKS:  TOo   I#j  Pa##j   CP
  39.  
  40.  
  41.  
  42. ; ----------------------------------------------------------------------
  43. ; the following start a urfl_only domain. These include _only_ links :
  44. ; reachable from the root word, tracing to the right. They aren't
  45. ; included in the domain
  46.  
  47. URFL_ONLY_DOMAIN_STARTER_LINKS:  SFsx   Ss#g   COp    
  48.  
  49.  
  50.  
  51. ; ----------------------------------------------------------------------
  52. ; links which start a domain and are also part of the domain. This must be 
  53. ; a sublist of the domain_starter_list 
  54.  
  55. DOMAIN_CONTAINS_LINKS: 
  56.  Mg*   Mx   Bsd   MX#a   Ma#*   Mv*   MX#r   Ss#d   Ws   Wq  Qd   Mj   Wj 
  57.  Wi  MX#j   AFd   PFc   Jr   Wd   Mr
  58.  
  59.  
  60.  
  61. ; ----------------------------------------------------------------------
  62. ; these links are not put in the word/link graph. They also cannot be the 
  63. ; starter links for a domain. (These links may also only be used in cycles.)
  64.  
  65. IGNORE_THESE_LINKS: Xca
  66.  
  67.  
  68.  
  69. ; ----------------------------------------------------------------------
  70. ; these links may only be used in cycles.
  71.  
  72. MUST_FORM_A_CYCLE_LINKS:  R#*   TOt   EXx   HA    SFsic   Jr  JQ  Xca
  73.  
  74.  
  75. ; ----------------------------------------------------------------------
  76. ; these links are not traced further if they point back before the root word 
  77.  
  78. RESTRICTED_LINKS: 
  79.    B#*  D##w   B#w   B#d   AFh  MVt   Xx   HL   SFsic  AFd   Bc   CX  EAh  
  80.    H   HA   PFc   B#j   Wd   PF   Z  B#m
  81. ;The creation of Rw, necessitated making B#m a restricted link to prevent the (e) domain, started by Ce, from extending around through the Rw link.
  82.  
  83.  
  84. ; ----------------------------------------------------------------------
  85. ; ---------------------- LINK TYPE TABLE-------------------------------
  86. ; ----------------------------------------------------------------------
  87. ; the following table associates a domain type with each possible
  88. ; starting link. It contains pairs: the first of each pair is a link
  89. ; type, and the second is the domain to which that link type belongs.
  90.  
  91. STARTING_LINK_TYPE_TABLE: 
  92.  Ce    e  
  93.  R*    r  
  94.  Rn    r
  95.  Re    r  
  96.  W     m  
  97.  RSe   e  
  98.  Cs    s  
  99.  Ca    s  
  100.  Jr    e  
  101.  Mr    r  
  102.  Cc    s  
  103.  Mv*   e  
  104.  QI#d  s  
  105.  BIqx  s  
  106.  TOn   e  
  107.  TOi   e  
  108.  MVi   e  
  109.  MV#o  s  
  110.  MV#p  s  
  111.  AFd   s  
  112.  PFc   s  
  113.  Mg*   e  
  114.  Mj    j  
  115.  Qd    m  
  116.  MX#j  j  
  117.  TOo   x  
  118.  I#j   x  
  119.  Pa##j x  
  120.  CP    x
  121.  COp   d  
  122.  SFsx  d  
  123.  Ss#g  d  
  124.  SIs#g s  
  125.  Ss#d  s  
  126.  Bsd   s  
  127.  ER    s  
  128.  Z     s  
  129.  Ma#*  e  
  130.  MX#p  e  
  131.  Ci    e  
  132.  MX#a  e  
  133.  Eq    e  
  134.  COq   e  
  135.  CCq   s  
  136.  MX#r  r 
  137.  
  138.  
  139. ; ----------------------------------------------------------------------
  140. ; ----------------------- LINK SETS ------------------------------------
  141. ; ----------------------------------------------------------------------
  142. ; (Not in use at present; see comment at beginning of file)
  143.  
  144. ; ----------------------------------------------------------------------
  145. ; ----------------- RULES ----------------------------------------------
  146. ; ----------------------------------------------------------------------
  147. ; explanation of syntax: as usual, each stanza begins with a label 
  148. ; terminated by a colon. The interpretation of the rule depends on 
  149. ; the label, as specified in each stanza.
  150.  
  151. ; the following rule asserts that the linkage must *still* be connected 
  152. ; when the specified set(s) of links are removed from the linkage.
  153.  
  154. FORM_A_CYCLE_RULES:
  155.         @MUST_FORM_A_CYCLE_LINKS  ,  "'must form a cycle' violation0"
  156.  
  157.  
  158. ; For the following rules, if a domain contains a link matching the 1st 
  159. ; column, it must also contain a linkage matching one of the members of the 
  160. ; set in the 2nd column. The individual rules are demarcated by semicolons and
  161. ; the fields within a rule are demarcated by commas. 
  162.  
  163. CONTAINS_ONE_RULES:
  164.  SI#*  ,  Wq    Qd    CQ    PFc             , "Bad use of s-v inversion1" ,
  165.  SI#x  ,  Wq    Qd    CQ    PFc             , "Bad use of s-v inversion2" ,
  166.  SFI##* , Wq    Qd    CQ    PFc             , "Bad use of s-v inversion3",
  167.  SXI   ,  Wq    Qd    CQ    PFc             , "Bad use of s-v inversion4" ,
  168.  Ws    ,  D##w    S##w    H                 , "S-V inversion required5",
  169.  I#a   ,  B#m    B#w                        , "incorrect use of 'to'6"       ,
  170.  Wq    ,  SI    SFI   SXI                   , "S-V inversion required7" ,
  171.  Qd    ,  SI    SFI   SXI                   , "S-V inversion required8" ,
  172.  PFc   ,  SI    SFI   SXI                   , "S-V inversion required9" ,
  173.  Mj    ,  Jw    JQ                          , "Incorrect relative10" ,
  174.  MX#j  ,  Jw    JQ                          , "Incorrect relative11" ,
  175.  Wj    ,  Jw    JQ                          , "Misuse of preposition12"     ,
  176.  JQ    ,  Mj    Wj    MX#j                  , "Misuse of preposition13"     ,
  177.  Jw    ,  Mj    Wj    MX#j                  , "Misuse of preposition14"     ,
  178.  B#j   ,  Jr                                , "Incorrect relative15"       ,
  179.  Jr    ,  B#j                               , "Incorrect relative16"       ,
  180.  EAh   ,  AF    Bsm    B*m    Qe    Ca    AFm              
  181.                         , "Incorrect use of 'how'17"    ,
  182.  EEh   ,  AF    Bsm    B*m    Qe    Ca    AFm               
  183.                         , "Incorrect use of 'how'18"    ,
  184.  Qe    ,  EEh                       , "Incorrect use of adverb19"   ,
  185.  THi   ,  SFsi   SFIsi   OXi                , "Complement requires 'it'20"  ,
  186.  TSi   ,  SFsi   SFIsi   OXi                , "Complement requires 'it'21"   ,
  187.  QIi   ,  SFsi   SFIsi   OXi                , "Complement requires 'it'22"    ,
  188.  TOi   ,  SFsi   SFIsi   OXi                , "Complement requires 'it'23"     ,
  189.  Ci    ,  SFsi   SFIsi   OXi                , "Complement requires 'it'24"     ,
  190.  COqi  ,  SFsi   SFIsi   OXi                , "Complement requires 'it'25"     ,
  191.  CPi   ,  SFsi   SFIsi   OXi                , "Complement requires 'it'26"     ,
  192.  Eqi   ,  SFsi   SFIsi   OXi                , "Complement requires 'it'27"     ,
  193.  LEi   ,  SFsi   SFIsi   OXi                , "Complement requires 'it'28"     ,
  194.  MVti  ,  SFsi   SFIsi   OXi                , "Complement requires 'it'29"     ,
  195.  AFdi  ,  SFsi   SFIsi   OXi                , "Complement requires 'it'30"     ,
  196.  O#i   ,  SFsi   SFIsi   OXi                , "Complement requires 'it'31"     ,
  197.  SFst  ,  O*t    Ost    Omt    Bs#t    B*#t    Bc#t    
  198.                         , "Bad use of 'there'32"           ,
  199.  SFIst ,  O*t    Ost    Omt    Bs#t    B*#t    Bc#t    
  200.                         , "Bad use of 'there'33"           ,
  201.  SFp   ,  Opt    Omt    O*t    Bp#t    B*#t    Bc#t    
  202.                         , "Bad use of 'there'34"           ,
  203.  SFIp  ,  Opt    Omt    O*t    Bp#t    B*#t    Bc#t    
  204.                         , "Bad use of 'there'35"           ,
  205.  OXt   ,  O#t    B##t                     ,   "Bad use of 'there'36"           ,
  206.  SFsi* ,  TOi    THi   QIi    TSi    O#i    Ci    THb   CPi   
  207.           COqi    CPi    Eqi    AFdi    BIh , "Bad use of 'it'37"           ,
  208.  SFIsi ,  TOi    THi   QIi    TSi    O#i    Ci    THb   CPi   
  209.           COqi    CPi    Eqi    AFdi    BIh , "Bad use of 'it'38"           ,
  210.  OXi   ,  TOi    THi   QIi    TSi    O#i    Ci    THb   CPi   
  211.           COqi    CPi    Eqi    AFdi    BIh , "Bad use of 'it'39"           ,
  212.  THb   ,  S##t    SI##t  SFsi  SFIsi        , "Bad use of predicate40"      ,
  213.  BIh   ,  Ss#b    SIs#b  SFsi  SFIsi        , "Bad use of predicate41"      ,
  214.  BIq   ,  S##q    SI##q  SFsi  Ss#b    SFIsi SIs#b 
  215.                                             , "Bad use of predicate42"      ,
  216.  MVt   ,  Dm#m   EAm   EEm   MVm  Pam   Pafm   AFm   EB#m   MVb
  217.           Om   Mam  Am  Jm  Ds*m   MX#m     , "Bad comparative43"    ,
  218.  MVz   ,  D##y    EAy    EEy    MVy    EB#y , "Bad comparative44"    ,
  219.  MV#a  ,  Pam    Pafm    EAm   Ds*m   EAy   AFm   Mam   Am  
  220.                         , "Bad comparative45"    ,
  221.  MV#i  ,  Pam    Pafm    EAm   Ds*m   EAy   AFm   Mam   Am  
  222.                         , "Bad comparative46"    ,
  223.  MV#o  ,  D##m    D##y    Om    Oy    Jm    Jy   Am   MX#m  
  224.                         , "Bad comparative47"    ,
  225.  MV#p  ,  EEm   MVb   Dm#m   EEy   D##y  MVm   Om   Oy 
  226.                             Jm   Jy   Am   MX#m         
  227.                         , "Bad comparative48"    ,
  228.  Pafc  ,  EB#m    EB#y                      , "Bad comparative49"    ,
  229.  Pafc  ,  Pa*    Paf*                       , "Bad comparative50"    ,
  230.  MVat  ,  MVm                               , "Bad comparative51"    ,
  231.  MVpt  ,  MVm                               , "Bad comparative52"    ,
  232.  MVat  ,  MVa   MVp                         , "Bad comparative53"    ,
  233.  MVpt  ,  MVa   MVp                         , "Bad comparative54"    ,
  234.  U#t   ,  D##m    D##y    Om    Oy    Jm    Jy   Am   MX#m           
  235.                             , "Bad comparative55"    ,
  236.  Cc    ,  EEm    EEy    MVm    MVb    MVy              
  237.                                         , "Bad comparative56"    ,
  238.  Sp#c  ,  Dmcm    Dmcy    Om    Oy    Jm    Jy  MX#m         
  239.                          , "Bad comparative57"    ,
  240.  Ss#c  ,  Dmum    Dmuy    Om    Oy    Jm    Jy    Ds*y  MX#m        
  241.                         , "Bad comparative58"    ,
  242.  S##c  ,  Dm#m    D##y    Om    Oy    Jm    Jy   MX#m         
  243.                         , "Bad comparative59"    ,
  244.  THc   ,  TH                                , "Bad comparative60"    ,
  245.  TOc   ,  TO**   TOf*   TOi*                , "Bad comparative61"    ,
  246.  TOtc  ,  TOt  ,                              "Bad comparative62"    ,
  247.  Ma**  ,   TO   TOf   TH   MVp   TOt   QI   OF  MVt   MVz   MVh   Ytm   Ya             
  248.                         , "Bad use of adjective63"    ,
  249.  Mam   ,  TO   TOf   TH   MVp   TOt   QI   OF  MVt   MVz   MVh   Ytm   Ya              
  250.                         , "Bad use of adjective64"    ,
  251.  MX#a  ,  TO   TOf   TH   MVp   TOt   QI   OF  MVt   MVz   MVh   Ytm   Ya   
  252.                                 , "Bad use of adjective65"    ,
  253.  Ixd   ,  ZZ                                , "Can't use 'do' with that verb" ,
  254.  Oxn   ,  ZZ                                , "Bad use of pronoun66" ,
  255.  MVh   ,  EExk   EAxk   D##k                , "Incorrect use of that67"    
  256. ; B#m  ,   D##w   H   HA                     , "Bad use of gerund68"   
  257. ; The Rw link necessitated commenting out 68.  Because we had to make B#m a restricted link(see above)
  258.  
  259. CONTAINS_NONE_RULES:
  260.  S     ,  Spxi                          , "Bad n-v agreement69" ,
  261.  SI     , SIpxi                            , "Bad n-v agreement70" ,
  262.  Ws    ,  B#m   Ca   BT                  , "Question inversion violated71" ,
  263.  SF    ,  I*   PP*   TO*   Pa*   Pam  Pg*   Pv*   LE*   AFd*  MVta         
  264.                         , "Bad use of 'filler' subject72" ,
  265.  SFI   ,  I*   PP*   TO*   Pa*   Pam  Pg*   Pv*   LE*   AFd*  MVta        
  266.                         , "Bad use of 'filler' subject73" ,
  267.  OX    ,  I*   PP*   TO*   Pa*   Pam  Pg*   Pv*   LE*   AFd*  MVta        
  268.                         , "Bad use of 'filler' subject74" ,
  269.  MXsr  ,  Sp#w                     , "Bad n-v agreement75" ,
  270.  MXpr  ,  Ss#w   S#iw                , "Bad n-v agreement76" ,
  271.  Mr    ,  B#*                    , "Bad use of 'whose'77"
  272.  
  273.  
  274. ; the following rule asserts that all specified domains must have the
  275. ; property that all of the words that touch a link in the domain are
  276. ; not to the left of the root word of the domain. These rules are
  277. ; different from the above in that the first field is a *domain name*,
  278. ; rather than a set of links.
  279.  
  280. BOUNDED_RULES:
  281.  s                               , "Unbounded s domain78" ,
  282.  r                               , "Unbounded r domain79" 
  283.